set(QT_USE_QTNETWORK on)
find_package(Qt4 REQUIRED)
include(${QT_USE_FILE})
file(GLOB UI_SRC *.ui)
file(GLOB HEADERS *.h)
file(GLOB SRCS *.cpp)
set(MOC_LIBS)
QT4_WRAP_CPP(MOC_LIBS ${HEADERS})
set(UI_LIBS)
QT4_WRAP_UI(UI_LIBS ${UI_SRC})

add_executable(server ${MOC_LIBS} ${UI_LIBS} ${SRCS})
target_link_libraries(server qmessaging common ${QT_LIBRARIES})
